import request from '@/utils/request'

// 获取负责人列表
export const getEmployeesSimple = () => request.get('/sys/user/simple')

// 获取员工列表
export const getEmployees = params => request.get('/sys/user', { params })
// 新增员工
export const addEmployees = data => request.post('/sys/user', data)
// 删除员工
export const delEmployees = id => request.delete('/sys/user/' + id)

export const importAaddEmployees = data => request.post('/sys/user/batch', data)
// 更新员工信息
export const saveUserDetailById = data => request.put('/sys/user/' + data.id, data)

export const getJobDetail = id => request.get(`/employees/${id}/jobs`)
